<template>
    <div class="equipment-move-box box-empty">
        <div class="return click-pointer" @click="onReturn">返回</div>
        <div class="equipment-move" style="margin-top: 15px">
            <div class="move-title">{{ testValue }}</div>
            <div class="show-area">
                <div class="show-area show-img">
                    <img :src="backgroundImageStyle" alt="#" />
                </div>
            </div>
        </div>
    </div>
</template>
<script>
export default {
    name: 'imgShow',
    components: {},
    data() {
        return {};
    },
    computed: {
        backgroundImageStyle() {
            return this.$route.query.res && this.$route.query.res.img ? this.$route.query.res.img : '';
        },
        testValue() {
            return this.$route.query.res && this.$route.query.res.test ? this.$route.query.res.test : '默认值';
        },
    },
    methods: {
        onReturn() {
            this.$router.go(-1);
        },
    },
    mounted() {},
};
</script>

<style scoped lang="scss">
/* 组件样式 */
</style>

<style scoped>
.return {
    box-shadow: inset 0px 0px 10px 0px rgba(0, 201, 255, 0.6);
    background: #03104c;
    width: 120px;
    height: 48px;
    line-height: 48px;
    border-radius: 0px 0px 0px 0px;
    border: 1px solid #3877f2;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    background-image: url('@/assets/img/fh.png');
    background-size: 24px;
    color: #ffffff;
    background-position: 10px center;
    background-repeat: no-repeat;
}

.show-img {
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.show-img img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 确保图片按比例缩放且不超出盒子 */
    display: block;
}
.facility {
    font-size: 14px;
    color: #ffffff;
    font-weight: bold;
    background-image: url('@/assets/img/bjt.png');
    background-repeat: no-repeat;
    background-size: 100%;
    height: 150px;
    text-align: center;
    margin: 20px 0 0 20px;
    font-weight: 300;
    min-width: 200px;
    max-width: 300px;
    z-index: 9999;
    top: 20px;
    position: absolute;
}
.equipment-move {
    position: relative;
    background-image: url('@/assets/img/atlas-message.png');
    background-size: 100% 100%;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    z-index: 5003;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex-grow: 1;
    overflow: hidden;
}
</style>
